import React from "react";

export default function withUser() {
    return function (WrappendComponent) {
        //反向继承
        return class extends WrappendComponent{
            render(){
                if(this.state.isLoading){
                    return <h2>正在玩命加载中......</h2>
                }else{
                    return super.render()
                }
            }
        }
    }
}